<template>
    <div>
       <van-nav-bar
          title="用户反馈"
          left-arrow
          @click-left="onClickLeft"
        />
      <feedback v-for="fb in fbs" :key="fb.id" v-bind="fb"></feedback>
    </div>
</template>

<script>
import axios from 'axios';
import feedback from '@/components/Feedback';

    export default {
      setup() {
        const onClickLeft = () => history.back();
        return {
          onClickLeft,
        };
      },
      data() {
        return {
          fbs: [],
        }
      },
      created() {
        axios.get('http://localhost:8087/feedback/selectAll').then((res)=>{
          this.fbs = res.data.data
          console.log(this.fbs);
        })
      },
      components:{
        feedback,
      }
};
   
</script>

<style lang="scss" scoped>
    .van-progress{
        margin-top: 5%;
    }
    h3{
        margin-top: 5%;
        font-size: 4vw;
    }
</style>